import type { Meta, StoryObj } from "@storybook/react";
import React from "react";
import KxCheckRectificationDataStatisticsPieChart from "./index";

const meta = {
  title:
    "饼图/可信离场在场人数比例饼图KxCheckRectificationDataStatisticsPieChart",
  component: KxCheckRectificationDataStatisticsPieChart,
  tags: ["autodocs"],
  argTypes: {},
  decorators: [
    (Story) => (
      <div
        style={{ backgroundColor: "#031857", height: "296px", width: "301px" }}
      >
        <Story />
      </div>
    ),
  ],
} satisfies Meta<typeof KxCheckRectificationDataStatisticsPieChart>;

export default meta;
type Story = StoryObj<typeof meta>;

export const basic: Story = {
  args: {
    dataSource: [
      {
        name: "离场人数",
        amount: 277,
      },
      {
        name: "在场人数",
        amount: 3115,
      },
    ],
    img: "https://test-ymsl.kxgcc.com:30195/cockpit/largescreen/leftTop.png",
  },
};
